cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
project(x3py)

###########################################################
# BUILD type
###########################################################
if(CMAKE_BUILD_TYPE MATCHES "Debug" OR CMAKE_BUILD_TYPE MATCHES "debug")
    set(CYG_TYPE "debug")
    add_definitions( -D_DEBUG)
    set(CMAKE_DEBUG_POSTFIX "d")
else()
    set(CYG_TYPE "release")
    set(CMAKE_DEBUG_POSTFIX "")
endif()

set(INC_PATH     ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(BIN_PATH     ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(PLUGINS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin/../lib/cyg/middle-plugins)

if(MSVC)
    add_definitions(-D_USRDLL)
else()
	add_definitions(-g -std=c++11)
endif()

add_subdirectory(src)
